projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e084e5c
)
GtkStackSwitcher: Simplify setting of .needs-attention
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 17 Jul 2014 01:08:27 +0000
(21:08 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 17 Jul 2014 01:08:27 +0000
(21:08 -0400)
Always add the .needs-attention style class, even if the button
is active. Themes can already avoid showing anything in this case.
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index 418f2fe8ef3b66f561da489123e893eef65007a6..35d82b8be28e75b4e8396ba893a4d4f4192aa61e 100644
(file)
--- a/
gtk/gtkstackswitcher.c
+++ b/
gtk/gtkstackswitcher.c
@@
-156,7
+156,7
@@
update_needs_attention (GtkWidget *widget, GtkWidget *button, gpointer data)
NULL);
context = gtk_widget_get_style_context (button);
- if (needs_attention
&& !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))
)
+ if (needs_attention)
gtk_style_context_add_class (context, GTK_STYLE_CLASS_NEEDS_ATTENTION);
else
gtk_style_context_remove_class (context, GTK_STYLE_CLASS_NEEDS_ATTENTION);